interface FileInfo {
  id: string;
  filename: string;
  size: number;
  path: string;
}

export default FileInfo;

/**
 * 已经上传到服务器的文件，有id
 */
export interface UploadedFile {
  id?: string;
  uid: string;
  filename: string;
  size: number;
  path?: string;
  file: File;
}

/**
 * 前端展示用，使用于图片
 */
export interface PreviewFile {
  id?: string;
  uid?: string;
  name: string;
  url?: string;
}
